package lero.service;

import lero.pojo.Admin;
import lero.pojo.Author;
import lero.vo.AuthorVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 2018/7/19.
 */
public interface AuthorServiceI {

    void insert(Author author);

    List<Author> select(AuthorVo vo);

    Author selectOne(int id);

    void  delete(int id);

    void  deleteMany(int[] ids);


    void  update(Author author);

    List<Map<String,Object>> getTree();

    List<Map<String,Object>> selectAuthorByCurrentRole(int roleId);

    void  saveAuthorIntoCurrentRole(int[] authorIds, int roleId);

    void deleteAuthorByCurrentRole(int roleId);

    List<Map<String,Object>>   selectCurentAdminMenuAuthor(Admin admin);

    List<Map<String,Object>>   selectCurrentAdminOwnAuthor(Admin admin);

}
